package com.coolwalker.common.enums;

public enum YesNoEnum implements BaseEnum {

    /**
     * Yes
     */
    YES("Y", Byte.valueOf("1")),
    /**
     * No
     */
    NO("Y", Byte.valueOf("0"))
    ;

    /**
     * Code
     */
    private String code;

    /**
     * Value
     */
    private Byte val;

    YesNoEnum(String code, Byte val) {
        this.code = code;
        this.val = val;
    }

    @Override
    public Byte val() {
        return this.val;
    }

    @Override
    public String code() {
        return this.code;
    }
}
